import { stopTransform, transfrom } from "./action/newTransfrom.js";
import "./role.js";
import "./init.js";
export let currentState = { role: "" };
export const domg = (str) => document.querySelector(str);
export const app = document.querySelector("#app");
export const role = document.querySelector(".role1");
let p = localStorage.role || "";
export const role1 = document.querySelector(".role1");
export const role2 = document.querySelector(".role2");
export const currentRole = document.querySelector(".role" + p.slice(1));
export const boxW = app.offsetWidth - role.offsetWidth - 6;
export const boxH = app.offsetHeight - role.offsetHeight - 6;
export const roleH = role.offsetHeight;
export const roleW = role.offsetWidth;
window.addEventListener("keydown", transfrom);
window.addEventListener("keyup", stopTransform);
window.addEventListener("beforeunload", () => { });
